import request from '@/api/index'
import { baseURL } from '@/common'

// 查询患者列表
export function getPatientListApi(data) {
    return request({
        url: baseURL + `/KnowledgeBase/QueryPatientListAsync`,
        data,
        method: 'get'
    })
}

// 查询患者详情
export function getPatientDetailApi(data) {
    return request({
        url: baseURL + `/KnowledgeBase/QueryPatientCheckupDetailAsync`,
        data,
        method: 'get'
    })
}

// 更新排序
export function UpdateOrderByAsyncApi(data) {
    return request({
        url: baseURL + `/KnowledgeBase/UpdateOrderByAsync`,
        data,
        method: 'post'
    })
}

// 更新体检报告详情
export function QueryCheckupKnowledgeDetailAsyncApi(data) {
    return request({
        url: baseURL + `/KnowledgeBase/QueryCheckupKnowledgeDetailAsync`,
        data,
        method: 'get'
    })
}

// 保存单个检查明细
export function SaveKnowledgeItemDataAsyncApi(data) {
    return request({
        url: baseURL + `/KnowledgeBase/SaveKnowledgeItemDataAsync`,
        data,
        method: 'post'
    })
}

// 保存反馈列表
export function SaveFeedbackListAsyncApi(data) {
    return request({
        url: baseURL + `/KnowledgeBase/SaveFeedbackListAsync`,
        data,
        method: 'post'
    })
}

// 获取体检项目规则下拉框列表
export function QueryHealthCheckupProjectSelectListAsyncApi(data) {
    return request({
        url:
            baseURL + `/KnowledgeBase/QueryHealthCheckupProjectSelectListAsync`,
        data,
        method: 'get'
    })
}

// 获取项目规则详情
export function QueryHealthCheckupProjectDetailAsyncApi(data) {
    return request({
        url: baseURL + `/KnowledgeBase/QueryHealthCheckupProjectDetailAsync`,
        data,
        method: 'get'
    })
}

// 全部重置
export function ResetItemDataAsyncApi(data) {
    return request({
        url: baseURL + `/KnowledgeBase/ResetItemDataAsync`,
        data,
        method: 'get'
    })
}
